package com.bw.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName t_chengpin
 */
@TableName(value ="t_chengpin")
@Data
public class Chengpin implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 成品id
     */
    private Integer pid;

    /**
     * 订单ID
     */
    private Integer oid;

    /**
     * 规格
     */
    private String specification;

    /**
     * 材质
     */
    private String material;

    /**
     * 数量
     */
    private Integer num;

    /**
     * 图片
     */
    private String pic;



    @TableField(exist = false)
    private String pname;
    /**
     * 单价
     */
    private BigDecimal price;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}